package com.d3works.apps.sale.service;

import com.d3works.apps.sale.db.Pack;
import com.d3works.apps.sale.db.PackLine;
import com.d3works.exception.D3worksException;

public interface PackLineService {

  /**
   * Reset product information when product is null.
   *
   * @param packLine
   * @return {@link PackLine}
   */
  public PackLine resetProductInformation(PackLine packLine);

  /**
   * Compute product information when product is not null.
   *
   * @param pack
   * @param packLine
   * @return {@link PackLine}
   * @throws D3worksException
   */
  public PackLine computeProductInformation(Pack pack, PackLine packLine) throws D3worksException;
}
